jade.content.schema
Class PredicateSchema

java.lang.Object
  |
  +--jade.content.schema.ObjectSchema
        |
        +--jade.content.schema.ContentElementSchema
              |
              +--jade.content.schema.PropositionSchema
                    |
                    +--jade.content.schema.PredicateSchema

public class PredicateSchema
extends PropositionSchema

Author:
Federico Bergenti - Universita` di Parma

Fields inherited from class jade.content.schema.PropositionSchema
BASE_NAME
 
Fields inherited from class jade.content.schema.ContentElementSchema
BASE_NAME
 
Fields inherited from class jade.content.schema.ObjectSchema
MANDATORY, OPTIONAL
 
Constructor Summary
PredicateSchema(java.lang.String name)
          Constructor
 
Method Summary
 void add(java.lang.String name, TermSchema slotSchema)
          Adds an argument to the predicate.
 void add(java.lang.String name, TermSchema slotSchema, int cardinality)
          Adds an argument to the predicate.
 AbsObject newInstance()
          Creates a new instance.
 
Methods inherited from class jade.content.schema.PropositionSchema
getBaseSchema
 
Methods inherited from class jade.content.schema.ObjectSchema
addBaseSchema, addElement, addElement, getNames, getSchema, getTypeName, isAttribute, isMandatory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PredicateSchema

public PredicateSchema(java.lang.String name)
Constructor
Parameters:
name - name of the predicate.
Method Detail

add

public void add(java.lang.String name,
                TermSchema slotSchema)
Adds an argument to the predicate.
Parameters:
name - name of the argument.
slotSchema - schema of the new argument.

add

public void add(java.lang.String name,
                TermSchema slotSchema,
                int cardinality)
Adds an argument to the predicate.
Parameters:
name - name of the argument.
slotSchema - schema of the new argument.
cardinality - cardinality of the attribute, i.e., mandatory or optional.

newInstance

public AbsObject newInstance()
Creates a new instance.
Overrides:
newInstance in class PropositionSchema
Returns:
the new instance.